package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车圈评论对象 car_forum_comments
 * 
 * @author ruoyi
 * @date 2025-04-08
 */
public class CarForumComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long commentId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 车辆ID */
    @Excel(name = "车辆ID")
    private Long vehicleId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentText;

    /** 评分 */
    @Excel(name = "评分")
    private Long rating;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 评论更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 父评论ID */
    @Excel(name = "父评论ID")
    private Long parentCommentId;

    /** 评论是否被删除 */
    @Excel(name = "评论是否被删除")
    private Integer isDeleted;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleId;
    }

    public void setCommentText(String commentText) 
    {
        this.commentText = commentText;
    }

    public String getCommentText() 
    {
        return commentText;
    }

    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setParentCommentId(Long parentCommentId) 
    {
        this.parentCommentId = parentCommentId;
    }

    public Long getParentCommentId() 
    {
        return parentCommentId;
    }

    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("userId", getUserId())
            .append("vehicleId", getVehicleId())
            .append("commentText", getCommentText())
            .append("rating", getRating())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("parentCommentId", getParentCommentId())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
